Ektron Reference


>>Helping Users Navigate Your Web Site > Using Search > Understanding Search Server Controls > Deploying User Search Server Controls

Deploying User Search Server Controls

Use UserSearch server controls to let site visitors search for users and membership users of your Web site.

UserSearchInputView - accepts user input of search terms

UserSearchController - takes input from UserSearchInputView control and returns search results

UserSearchResultsView - shows search results; you can modify the results' display

To provide search capabilities to your Web site content, insert all three controls onto an .aspx template. Because the search functions are managed by separate controls, you can place a search field and button in a one section of a page, and the results in another.

Also, unless you want to use the default paging properties (which show only ten results), insert an EktronUI Pager control on the page to manage the paging of the search results.

Prerequisite: Search server controls were added to the Visual Studio Toolbox. See Adding Search Server Controls into Visual Studio.

If you drag and drop controls from the VS Toolbox, the necessary register statements are automatically added to the page. If you copy and paste the sample code, add the following register statement for templated controls:

<%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>

For Ektron UI controls, use this register statement:

<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" tagprefix="ektronUI" %>

The tag prefix can be anything as long as it matches the control's prefix.

Here is a basic template showing the three controls.

This section also contains the following topics.

UserSearchInputView Server Control

SearchController Server Control

UserSearchResultsView Server Control

UserSearch Model

See Also: Understanding Search Server Controls


Ektron Version 8.5, Doc. Rev. 2.0 (Dec. 2011)
Visit the
Ektron Dev Center at http://dev.ektron.com 1–866–4–EKTRON
Ektron Documentation, © 2011 Ektron, Inc.